// ref: https://umijs.org/config/
export default {
  plugins: [
    // ref: https://umijs.org/plugin/umi-plugin-react.html
    ['umi-plugin-react', {
      antd: true,
      dva: false,
      dynamicImport: true,
      title: '网约车',
      dll: true,
      routes: {
        exclude: [],
      },
      hardSource: true,
      dynamicImport: {
        loadingComponent: './components/LoadingPacman/index',
      },
    }],
  ],
  // 路由配置
  routes: [{
    path: '/yd',
    component: './Sj'
  }, {
    path: '/sj',
    component: './Sj/Sj'
  }, {
    path: '/',
    component: '../layouts/index',
    routes: [
      { path: '/', redirect: '/home' },
      { path: '/home', component: './Home' },
      { path: '/wap', component: './Home' },
      { path: '/about', component: './About' },
    ],
  }],
  hash: true,
  history: 'hash',
  // disableCSSModules: true,
  proxy: {
    '/user': {
      // target: 'http://www.h5gf.cn/cardH5/public',
      target: 'http://tp.bailiangbaibo.com',
      changeOrigin: true,
    },
  },
}